package com.masterclient.app.modules.income.contract;

import android.support.annotation.NonNull;

import com.eoner.baselibrary.base.BasePresenter;
import com.eoner.baselibrary.base.BaseView;
import com.masterclient.app.base.ProgressLoginDialog;
import com.masterclient.app.modules.income.dealer.model.DealerBankCardBean;
import com.masterclient.app.modules.income.model.ApplyWithdrawBean;
import com.masterclient.app.modules.income.model.WithdrawChargeBean;

import java.util.List;

/**
 * 作者：sean
 * 创建时间：2017/8/9 19:40
 * 功能说明：
 */

public interface ApplyWithdrawContract {

    interface View extends BaseView {
        void showData(ApplyWithdrawBean dataBean);
        void applyWithdrawSuccess(ApplyWithdrawBean dataBean);
        void showDataFailed(String msg);

        void getBankSuccess(List<DealerBankCardBean> data);
        void getBankCardFail(String msg);

        void withdrawChargeSuccess(WithdrawChargeBean data);
        void withdrawChargeFail(String msg);

        void getCaptchaResult(String result);
        void showError(String msg);
    }
    abstract class Presenter extends BasePresenter<View> {

        @Override
        public void onStart() {

        }
        public abstract void getWithdrawPreviewData();
        public abstract void applyWithdraw(String bankcard_cert_id, String amount, String mobile, String captcha, ProgressLoginDialog dialog);
        public abstract void getBankCardInfo(ProgressLoginDialog dialog);
        public abstract void withdrawCharge(String amount, ProgressLoginDialog dialog) ;
        public abstract void getCaptcha(@NonNull String phoneNum, @NonNull String type, String ne, ProgressLoginDialog dialog);
    }
}